package org.whatisjava.action.result;

import org.apache.struts2.dispatcher.StrutsResultSupport;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.util.ValueStack;

/**
 * 自己写的JSON_type
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-2-1
 */


public class JSONResult extends StrutsResultSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	protected void doExecute(String finalLocation, ActionInvocation invocation)
			throws Exception {
		ValueStack vs = (ValueStack) invocation.getStack();
		System.out.println(vs.findValue("[0]"));
	}

}
